From d077f627ef80aebf31efe71cbf15454791d6e7a7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 3 Nov 2015 23:55:50 -0500 Subject: [PATCH] inspector: Really show the selected CSS node Try harder to scroll the selected CSS node into view. --- gtk/inspector/css-node-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/inspector/css-node-tree.c b/gtk/inspector/css-node-tree.c index 0ae5632487..5c6fc175e9 100644 --- a/gtk/inspector/css-node-tree.c +++ b/gtk/inspector/css-node-tree.c @@ -366,7 +366,7 @@ gtk_inspector_css_node_tree_set_object (GtkInspectorCssNodeTree *cnt, gtk_tree_view_expand_to_path (GTK_TREE_VIEW (priv->node_tree), path); gtk_tree_view_set_cursor (GTK_TREE_VIEW (priv->node_tree), path, NULL, FALSE); - gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (priv->node_tree), path, NULL, FALSE, 0.0, 0.0); + gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW (priv->node_tree), path, NULL, TRUE, 0.5, 0.0); gtk_tree_path_free (path); } -- 2.30.2